--- import { getCollection, type CollectionEntry } from 'astro:content'; import PostLayout from '../../layouts/PostLayout.astro'; export async function getStaticPaths() { const posts = await getCollection('posts'); return posts.map((post: CollectionEntry<'posts'>) => ({ params: { slug: post.slug }, props: { post }, })); } const { post } = Astro.props as { post: CollectionEntry<'posts'> }; const { Content } = await post.render(); ---